<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>50.trimStart</title>
</head>
<body>
<script>
  let str1 = '    abc     '
  console.log(str1.trimStart())
  console.log(str1.trimEnd())
</script>
</body>
</html>